﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SManage.TraceEngine
{
    public static class EngineConfigeManager
    {
        public static Int32 Timeout {
            get {
                return SyncEngineConfig.Default.Timeout;
            }
            set {
                SyncEngineConfig.Default.Timeout = value;
                SyncEngineConfig.Default.Save();
            }
        }
        public static Int32 RetryTimes {
            get {
                return SyncEngineConfig.Default.RetryTimes;
            }
            set {
                SyncEngineConfig.Default.RetryTimes = value;
                SyncEngineConfig.Default.Save();
            }
        }
        public static String Community {
            get {
                return SyncEngineConfig.Default.Community;
            }
            set {
                SyncEngineConfig.Default.Community = value;
                SyncEngineConfig.Default.Save();
            }
        }
        public static Int32 Port {
            get {
                return SyncEngineConfig.Default.Port;
            }
            set {
                SyncEngineConfig.Default.Port = value;
                SyncEngineConfig.Default.Save();
            }
        }
    }
}
